package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.base.mapper.voipmapper.TaskReachMapper;
import com.base.po.voip.TaskReach;
import com.base.service.TaskReachService;
import com.base.utils.Page;

@Service("taskReachService")
public class TaskReachServiceImpl implements TaskReachService {

	@Autowired
	private TaskReachMapper taskReachMapper;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return taskReachMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(TaskReach record) {
		return taskReachMapper.insert(record);
	}

	@Override
	public int insertSelective(TaskReach record) {
		return taskReachMapper.insertSelective(record);
	}

	@Override
	public TaskReach selectByPrimaryKey(Integer id) {
		return taskReachMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(TaskReach record) {
		return taskReachMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TaskReach record) {
		return taskReachMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<TaskReach> selectByAll(String subid, String agentid, String createtime) {
		return taskReachMapper.selectByAll(subid, agentid, createtime);
	}

	@Override
	public List<TaskReach> selectByTaskReach(String subid, String agentid, String createtime, Integer type) {
		return taskReachMapper.selectByTaskReach(subid, agentid, createtime, type);
	}

	@Override
	public TaskReach selectByPresent(String subid, String agentid) {
		return taskReachMapper.selectByPresent(subid, agentid);
	}

	@Override
	public TaskReach countByShopAll(String shopid, String mobile, String username, String shopname, String createtime) {
		return taskReachMapper.countByShopAll(shopid, mobile, username, shopname, createtime);
	}

	@Override
	public List<TaskReach> selectByShopAll(Page page, String shopid, String mobile, String username, String shopname,
			String createtime) {
		return taskReachMapper.selectByShopAll(page, shopid, mobile, username, shopname, createtime);
	}

	@Override
	public TaskReach countByParentAll(String parentid, String mobile, String username, String shopname,
			String createtime) {
		return taskReachMapper.countByParentAll(parentid, mobile, username, shopname, createtime);
	}

	@Override
	public List<TaskReach> selectByParentAll(Page page, String parentid, String mobile, String username,
			String shopname, String createtime) {
		return taskReachMapper.selectByParentAll(page, parentid, mobile, username, shopname, createtime);
	}
}
